<?
    if($_POST){
        include_once('mpay24.class.php');
        $mpay24 = new mpay24('/Users/clops/Sites/mpay24/','http://mpay/');

        //yeah
        $tid = $mpay24->generateTID(89); //takes order id and returns a Transaction ID (store in the database for status tracking)
        $mpay24->addItem('Text',2,50); //name, price, tax
        $mpay24->addTax(20,10);
        $mpay24->addShippingCost(10);

        $reply = $mpay24->pay();
    }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type">
<title>mPAY24 SelectPayment</title>
</head>
<body>
	<form action="index.php" method="POST">
		<table>
			<tr>
				<td>Betrag:</td>
				<td><input name="summe" type="text" size="7" value="114.60"></input></td>
			</tr>
			<tr>
				<td>Sprache:</td>
				<td>
					<select name="sprache" size="1">
						<option>EN</option>
					</select>
				</td>
			</tr>
		</table>
		<input type="submit"/>
	</form>
</body>
</html>